import { post } from "../../../../utils/request";

// 模糊查询
const queryByName = ({ content, pageIndex = 1, pageSize = 5 }) =>
  post("/mgt/get4AFuzzySearch", {
    content: content || "",
    pageIndex: String(pageIndex),
    pageSize: String(pageSize)
  });

// 按组织查询
const queryByOrg = ({ orgCode, pageIndex = 1, pageSize = 5 }) =>
  post("/mgt/get4APushPerson", {
    orgCode,
    pageIndex: String(pageIndex),
    pageSize: String(pageSize)
  });

export default { queryByName, queryByOrg };
